package com.wty.design.structural.facade.exchangeGift;

/**
 * @Author wangtengyu
 * @Create 2018-09-19-8:50
 */
public class ExchangeGiftService {

    private QualifyService qualifyService;
    private payService payService;
    private ShipService shipService;

    public  ExchangeGiftService(){
        qualifyService=new QualifyService();
        payService=new payService();
        shipService=new ShipService();
    }

    public boolean isAvailable(Gift gift){
        qualifyService.isAvailable(gift);
        return true;
    }

    public boolean pay(Gift gift){
        payService.pay(gift);
        return true;
    }
    public boolean ship(Gift gift){
        shipService.shipping(gift);
        return true;
    }

}
